﻿using System;
using System.Threading;

/// <summary>
/// 基于Tcp的socket长连接,服务器
/// </summary>
namespace Server
{
    class Program
    {
        static void Main(string[] args)
        {
            //socket服务器
            ServerManager.Instance.StartUp();
            Console.WriteLine("server initalized");

            //开启loop循环，防止程序退出
            Thread loop = new Thread(Loop);
            loop.Start();
        }

        private static void Loop()
        {
            while (true)
            {
                Thread.Sleep(1000);
            }
        }
    }

}
